<template>
    <h2>This is a parent component</h2>
    <teleport to="#endofbody">
      <childcomponent name="lb" />
    </teleport>
</template>

<script>
import { reactive, toRefs } from 'vue'
import childcomponent from './ChildComp'

export default {
    components:{
        childcomponent
    },
    setup () {
        const state = reactive({
            
        })
    
        return {
            ...toRefs(state)
        }
    }
}
</script>

